# import math
import random as ra
# from math import sqrt as sq
from math import *
import demo_10

# PI = math.pi
PI = pi  # 导入模块的所有内容时，不需要另外复制，因为它不用模块名.函数名或常量名，对于常量直接用即可
def circle_area(r):
    global PI
    return PI * r * r
area = circle_area(3)
# print(area)

def random_circle_area():
    r = ra.randint(1,100)
    print(r)
    global PI
    return PI * r ** 2
# area1 = random_circle_area()
# print(area1)
# res = math.sqrt(area)
# res = sqrt(area)
# print(res)
# res1 = sqrt(area)
# print(res1)
# res2 = sq(area)
# print(res2)

# res3 = demo_10.fun2(1,10)
# print(res3)

demo_10.fun_07()